package com.example.musicapp.contract;

import com.example.musicapp.base.IBasePresenter;
import com.example.musicapp.base.IBaseView;
import com.example.musicapp.bean.Music;
import com.example.musicapp.network.HttpResponseListener;

import java.util.List;

public interface ISearchContract {
    /*** view 层接口 */
    interface ISearchUi extends IBaseView {
        /*** 登录成功 */
        void searchSuccess(List<Music> list);

        /**
         * 登录失败
         */
        void searchFailure();

        void getHotSuccess(List<String> list);

        void addHistoryWord(String historyWord);

        void clearHistoryWord();


        void showHistoryWord();

        void clearHot();


    }


    /*** presenter 层接口 */
    interface ISearchPre extends IBasePresenter {
        int search(String searchThing, int curPage);
        void addHistory(String word);


        void getHotWord();
    }

    /*** model 层接口 */
    interface ISearchModel {
        void search(String searchThing, int curPage, HttpResponseListener callBack);

        void requestHotWord(HttpResponseListener callBack);
    }
}
